package com.ctshk.rpc.order.custom.req.tourist;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 出签成功 req
 * </p>
 *
 * @author 叶冠峰
 * @since 2021-03-17
 */
@Data
@ApiModel(value="CustomOrderTouristSignOutSuccessReq", description="出签成功 req")
public class CustomOrderTouristSignOutSuccessReq implements Serializable {

    @ApiModelProperty(value = "所属订单")
    private Long orderId;

    @ApiModelProperty(value = "出签状态 1, 出签成功 2, 出签失败")
    private Integer signOutStatus;

    @ApiModelProperty(value = "游客ID集合")
    private List<Long> touristIdList;

    @ApiModelProperty(value = "出签运单号")
    private String signOutTrackingNumber;

    @ApiModelProperty(value = "出签快递时间")
    private LocalDateTime signOutExpressTime;

    @ApiModelProperty(value = "出签回执文件")
    private String signOutReceiptFile;

    @ApiModelProperty(value = "出签签证文件JSON")
    private String signOutFilesJson;

    @ApiModelProperty(value = "出签签证文件JSON")
    private List<String> signOutFilesJsonList;

    @ApiModelProperty(value = "用户Id")
    private Long userId;

    public String getSignOutFilesJson() {
        this.signOutFilesJson = JSON.toJSONString(signOutFilesJsonList);
        return signOutFilesJson;
    }

    /*@NotNull(message = "游客ID不能为空")
    @ApiModelProperty(value = "游客ID",required = true)
    private Long id;

    @NotNull(message = "出签运单号不能为空")
    @ApiModelProperty(value = "出签运单号",required = true)
    private String signOutTrackingNumber;

    @NotNull(message = "签证文件url不能为空")
    @ApiModelProperty(value = "签证文件url（出签成功才传）")
    private String signOutReceiptFile;

    @NotNull(message = "回执文件不能为空")
    @ApiModelProperty(value = "回执文件",required = true)
    private String signOutFilesJson;

    @NotNull(message = "出签快递时间不能为空")
    @ApiModelProperty(value = "出签快递时间",required = true)
    private LocalDateTime signOutExpressTime;

    @ApiModelProperty(value = "用户Id")
    private Long userId;*/

}
